<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('仓库编辑')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-store-add" th:object="${store}">
			<input type="hidden" name="id" id="id" th:value="*{id}">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">仓库名称：</label>
				<div class="col-sm-8">
					<input class="form-control" th:value="*{storeName}" type="text" name="storeName" id="storeName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">仓库地址：</label>
				<div class="col-sm-8">
					<textarea id="scope" th:text="*{storeAddress}" name="storeAddress" class="form-control"></textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="common/include :: footer" />
	<link rel="stylesheet" type="text/css" href="/plugins/datetimepicker/jquery.datetimepicker.min.css"/>
	<script src="/plugins/datetimepicker/jquery.datetimepicker.full.js"></script>

	<script type="text/javascript">
		var prefix = ctx + "/business/store";
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-store-add').serialize());
	        }
	    }
	</script>
</body>
</html>
